﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MS.InformationManagement.DAL.DocumentCenter;
using Microsoft.SharePoint;

namespace MS.InformationManagement.BLL.ConCoipaSelector
{
    public class ConCoipaSelector
    {
        public static IEnumerable<MedioDeEnvio> LoadMediosDeEnvio()
        {
            IEnumerable<MedioDeEnvio> foundMedios = null;

            using (DCDocumentCenterDataContext dx = new DCDocumentCenterDataContext(SPContext.Current.Web.Url))
            {
                foundMedios = (from medios in dx.MediosDeEnvio
                               orderby medios.Title ascending
                               select medios);
            }
            return foundMedios;
        }
    }
}
